<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        .main {
            width: 530px;
            height: 300px;
            display: grid;
            background-color: #1abe9c;
        }

        .main img {
            grid-area: 1/1/1/1;
        }

        .main span {
            grid-area: 1/1/1/1;
            place-self: end end;
            margin: 5px;
        }

        .main p {
            grid-area: 1/1/1/1;
            height: 30px;
            /* align-self: end; */
            background-color: rgba(0, 0, 0, 0.5);
            line-height: 30px;
            color: #ffffff;
        }



        /* .main div:nth-of-type(1) {
            grid-area: a1;
        }*/
    </style>
</head>

<body>
    <div class="main">
        <img src="./phone.png" alt="">
        <span>自制</span>
        <p>手机热卖中...</p>
    </div>
</body>

</html>